home *** CD-ROM | disk | FTP | other *** search
/ Level 2003 February / Level_02_2003.iso / Extra / Emulator / Sega Master System.exe / Sega Master System / tech.txt < prev    next >
Encoding:
Text File  |  2003-01-16  |  12.1 KB  |  304 lines

  1. -----------------------------------------------------------------------------
  2.  MEKA - Technical Document (for those who cares about technical stuff)
  3. -----------------------------------------------------------------------------
  4.  
  5. -----------------------------------------------------------------------------
  6.  SUMMARY
  7. -----------------------------------------------------------------------------
  8. 1. Master System quick specifications
  9. 2. How to build an adapter to connect SMS Joypads to your PC
  10. 3. How to build an adapter to connect 3-D Glasses to your PC
  11. 4. More ?
  12. -----------------------------------------------------------------------------
  13.  
  14. -----------------------------------------------------------------------------
  15.  1. Master System & Game Gear quick specifications
  16.  by Omar Cornut
  17. -----------------------------------------------------------------------------
  18.  Mainly intended for webmasters who would like to put some infos about the
  19.  systems. If you want to know way more about them, check out S8-Dev at the
  20.  following address: http://www.smspower.org/dev
  21.  
  22.   CPU:         Zilog Z80 at 3.58 mhz (3.579545 hz to be exact).
  23.  
  24.   RAM:         64 kbits (= 8 kbytes)
  25.  
  26.   Save RAM:    on certain cartridges only (mostly role playing games).
  27.                usually one or two banks of 128 kbits each (= 16 kbytes).
  28.  
  29.   Video RAM:   128 kbits (= 16 kbytes)
  30.  
  31.   Colours:     32 (16*2) on-screen, choosed from a palette of 64 on the
  32.                Master System and 512 on the Game Gear.
  33.  
  34.   Resolution:  256x224 pixels. In video modes used by the very most games,
  35.                only the top 256x192 pixels or the top right 248x192 pixels
  36.                are shown on the screen. On the Game Gear, a 160x144 pixels
  37.                centered area is always shown.
  38.  
  39.   Characters:  8x8 pixels, using one of the two 16 colors palette. Up to
  40.                512 characters can be stored in VRAM but usually only 448
  41.                are used because there will be not enough room to store
  42.                actual screen and sprite tables.
  43.  
  44.   Sprites:     maximum of 64 sprites on-screen, 8 per lines. Sized of 8x8
  45.                or 8x16 pixels, using one of the two 16 colors palette (the
  46.                same for all sprites). may be masked by foreground tiles.
  47.  
  48.   Scrolling:   hard scrolling, vertical and horizontal, line per line. the
  49.                scrolling can be ignored for the upper 16 pixels (used in
  50.                many games for the status bar) and for the 64 right pixels
  51.                (used in Gauntlet and Golvellius in vertical stages).
  52.  
  53.   Audio:       three tone channels with 1024 different frequencies and one
  54.                noise (sound) channel. 16 different volume step for each.
  55.  
  56.                optional YM-2413 FM chipset on Japanese systems: 9 channels
  57.                (or 6 + 3 drums), 15+1 instruments, hardware vibrato and
  58.                amplitude modulation.
  59. -----------------------------------------------------------------------------
  60.  
  61. -----------------------------------------------------------------------------
  62.  2. How to build an adapter to connect SMS Joypads (DB-9) to your PC
  63.     (via the Parallel Port)
  64.     Comments by Mike Gordon.
  65. -----------------------------------------------------------------------------
  66.  
  67.  Note
  68.  ----
  69.  This is a copy based on the schematic available on the now defunct
  70.  DirectPad Pro site. I'm not sure who is the original author of this
  71.  schematic, but it is very simple and the common nature of the adapter
  72.  make it somewhat public domain knowledge.
  73.  
  74.  D-Connector Pinouts
  75.  -------------------
  76.  
  77.  Pinouts are shown looking into the holes of the connector itself.
  78.  _____________
  79.  \ 5 4 3 2 1 /    A DB-9 Connector (see also
  80.   \ 9 8 7 6 /     Chapter 3 for detailed informations)
  81.    ~~~~~~~~~
  82.  DB-9 SMS Joypad plug (female)
  83.  __________________________________________
  84.  \ 13 12 11 10  9  8  7  6  5  4  3  2  1 /    
  85.   \  25 24 23 22 21 20 19 18 17 16 15 14 / 
  86.    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  87.  DB-25 Parallel connector on PC (female)
  88.  
  89.  
  90.  DB-9 joypads (and more generally, inputs peripherals) were of common
  91.  usage on Sega Master System, Megadrive, but also Atari and Amiga. 
  92.  
  93.  Legend
  94.  ------
  95.  Resistor:  --vvvvv--
  96.  
  97.  Circuit
  98.  -------
  99.  
  100.  PARALLEL PORT (DB-25)                          SMS PAD (DB-9)
  101.  
  102.      DB25:1  <----------------------------------->  DB-9:1      (Up)
  103.  
  104.      DB25:2  <------vvvvvvvvv---+---------------->  DB-9:6      (Button 1)
  105.                        10K      |
  106.      DB25:11 <------------------+
  107.  
  108.      DB25:3  <------vvvvvvvvv---+---------------->  DB-9:9      (Button 2)
  109.                        10K      |
  110.      DB25:12 <------------------+
  111.  
  112.      DB25:14 <----------------------------------->  DB-9:2      (Down)
  113.      DB25:16 <----------------------------------->  DB-9:3      (Left)
  114.      DB25:17 <----------------------------------->  DB-9:4      (Right)
  115.  
  116.      DB25:18 <------------------+---------------->  DB-9:8      (Ground)
  117.                                 |
  118.      DB25:19 <------------------+
  119.  
  120. * You need a 25-pin male D-plug (DB-25) for the parallel port connection (to
  121.   fit the female parallel port socket), and a 9-pin male D-plug (DB-9) for
  122.   the SMS joypad connection (to fit the female joypad plug). The pin numbers 
  123.   should be marked on the plug itself.
  124.  
  125. * The type of resistor used (metal film, carbon etc.) is not important. The
  126.   resistors can be soldered directly to the DB-25 connector, i.e. connect one
  127.   resistor between pin 3 and pin 12, another between pin 2 and pin 11. (And
  128.   a wire link, between pins 18 and 19.)
  129.  
  130.   The resistor value (10K) is indicated by coloured bands on the body of the
  131.   resistor, as follows, from left to right:
  132.  
  133.    Either: Brown Black Orange       (gap)  Brown or Gold
  134.        or: Brown Black Black Red    (gap)  Brown or Gold
  135.  
  136. * Use shielded cable, and use the outer shield of the cable for the Ground
  137.   connection. Try and keep the cable as short as possible.
  138.  
  139.  
  140. -----------------------------------------------------------------------------
  141.  3. How to build an adapter to connect 3-D Glasses to your PC
  142.     (via the COM Port)
  143.     by Unknown (long time ago). comments by Frank and Mike Gordon.
  144. -----------------------------------------------------------------------------
  145.  
  146.  Note
  147.  ----
  148.  As of yet, MEKA supports 3-D Glasses only in pure DOS mode.
  149.  This is due to a yet unknown bug.
  150.  Do not bother building the adapter if you can't boot in DOS or you
  151.  are not familiar with it.
  152.  
  153.  Legend
  154.  ------
  155.  Diode:      --|>|--
  156.  
  157.  Resistor:  --vvvvv--
  158.  
  159.                 |
  160.  Capacitor:    ---
  161.                ---
  162.                 |
  163.  
  164.  Circuit
  165.  -------
  166.  
  167.        RS-232
  168.      DB25 / DB9
  169.                                                    10K
  170. RTS   4      7  Switching signal +/- 10V  --------vvvvv--+
  171.                                                          |
  172.                                                          |
  173. GND   7      5  Ground ----+-------------+--+---------+--|----+
  174.                            |             |  |         |  |    |
  175.                            |             |  +-|>|--+  |  |    |
  176.                            +--|>|--+    ---        |  |  |    |  Transistor
  177.                                    |    ---  22 uF |  |  |    |   2N2222
  178.                                    |     |         |  |  |  +-+---------+
  179.                                    |     |         |  |  |  | Emitter   |
  180.                                    |     |         |  |  |  |           |
  181. DTR  20      4  Vdd +10V --|>|-----+-----+         +--|--+--+ Base      |
  182.                                          |            |     |           |
  183.                               +--+--+--+-+-vvvvv---+--|-----+ Collector |
  184.                               |  |  |  |    10K    |  |     |           |
  185.                               |  |  |  |           |  |     +-----------+
  186.                       +-------+--+--+--+-----------+--+--+
  187.                       |       1  9  13 14          5  7  |
  188.                       |                                  |
  189.                       |   RCA CD 4030 Quad XOR gate      |
  190.                       |                                  |
  191.                       | 2 11  12       3  6  8   10   4  |
  192.                       +-+--+---+-------+--+--+----+---+--+
  193.                         |  |   |       |  |  |    |   |
  194.                         +--+   |       +--+--+    |   +--- Outside of jack
  195.                            |   |             |    |
  196.                            |   +-vvvvv-+     |    +------- Middle of jack
  197.                            |      22K  |     |
  198.                            |           |     +------------ Centre of jack
  199.                            +-vvvvv-----+     |
  200.                               22K      |     |
  201.                                       ---    |
  202.                               .01 uF  ---    |
  203.                                        |     |
  204.                                        +-----+
  205.  
  206. [FRANK]
  207.  
  208. This is my best attempt at a rendition of the circuit which connects my
  209. SEGA glasses to my AT. I didn't design the circuit -- I'm a software
  210. rather than hardware person. In fact I barely understand it -- as far as
  211. I can tell, the .01uF capacitor & the 22K resistors act as a delay. The
  212. outputs of the XOR gates feed back into their own inputs, thus producing
  213. an oscillator. The "jack" mentioned in the diagram is the mini-jack
  214. which is connected as standard to the glasses. "Centre", "middle", and
  215. "outside" relate to the external connections, looking at the thing
  216. end-on.
  217.  
  218. Caveat emptor... to paraphrase the standard software licence agreement:
  219. It's as good as I can get it. If it doesn't work or blows up your
  220. computer or your glasses and blinds you for life, I'll give you back all
  221. the money you paid me.
  222.  
  223. [MIKE GORDON]
  224.  
  225. As far as I can see, the oscillator circuit is used to provide an AC supply
  226. to power the glasses. The switching signal (+ or - 10 volts) applied to the
  227. base of the transistor produces a high or low output on the collector, which
  228. presumably is used to switch between left and right frames.
  229.  
  230. When building the adapter:
  231.  
  232. * Use a CMOS series 4030B (or 4070B, which is functionally equivalent). Do 
  233.   not use a 74HC series chip.
  234.  
  235.   Chip pin numbering:
  236.  
  237.       7  6  5  4  3  2  1
  238.      +-------------------+
  239.      |                   |
  240.      |   4070B           < - notch
  241.      |                   |
  242.      +-------------------+
  243.       8  9 10 11 12 13 14
  244.  
  245.  
  246. * Use 1N4148 (or equivalent) signal diodes. The positive end is marked by a
  247.   black band around the component.
  248.  
  249.       Negative  -  --|>|--  +  Positive
  250.  
  251.  
  252. * The resistors should ideally be metal film types (blue-coloured body). 
  253.   The value is indicated by coloured bands, as follows, from left to right:
  254.  
  255.      22K - Red Red Orange           (gap)  Brown or Gold
  256.       OR - Red Red Black Red        (gap)  Brown or Gold
  257.  
  258.      10K - Brown Black Orange       (gap)  Brown or Gold
  259.       OR - Brown Black Black Red    (gap)  Brown or Gold
  260.  
  261.  
  262. * The .01 uF (10 nF) capacitor should be a ceramic disc type, while the 22uF
  263.   capacitor should be an electrolytic type.
  264.  
  265.  
  266. * For the 2N2222A transistor (looking at it from below, with the pins towards
  267.   you) :
  268.  
  269.  
  270.                      o - Base
  271.  
  272.  
  273.      Emitter -   o       o   - Collector
  274.  
  275.              
  276.   Metal tab - /_/
  277.                    
  278.  
  279. * The serial port is a 9-pin D-type male connector, so you need a 9-pin
  280.   female D plug for the adapter. Looking into the serial port itself, this
  281.   is the pin configuration:
  282.  
  283.                  1 2 3 4 5
  284.                -------------
  285.                \ o o o o o /
  286.                 \ o o o o /
  287.                  ---------               
  288.                   6 7 8 9
  289.  
  290.  
  291. * Finally, the 3-D glasses jack is a 3.5mm stereo phone socket, i.e. the
  292.   Walkman type.
  293.  
  294. Good luck building the adapter, and enjoy!
  295.  
  296. -----------------------------------------------------------------------------
  297.  
  298. -----------------------------------------------------------------------------
  299.  4. More ?
  300. -----------------------------------------------------------------------------
  301.  If you feel you have something interesting to contribute to this
  302.  document, you can have it posted by e-mailing me (omar @ cornut.fr).
  303. -----------------------------------------------------------------------------
  304.